package com.wandian.view.components.ui.replay
{
	import com.wandian.view.components.ui.CardManage;
	
	import flash.display.MovieClip;
	
	import flashx.textLayout.debug.assert;

	/**
	 * @author long
	 * @Create  2013-2-28 下午06:05:29
	 * @QQ 108232706
	 * @version 1.0
	 */
	public class PublicCard
	{
		private var _arrCard:Array;
		private var _arrCardXY:Array;
		private var _arrRecordCards:Array;
		private var _arrMyCard:Array;
		private var viewComponent:Object;

		public function PublicCard(_viewComponent:Object)
		{
			this.viewComponent=_viewComponent;
			this._arrRecordCards=[];
			this._arrMyCard=[];
			init();
		}

		private function init():void
		{
			this._arrCard=[];
			this._arrCardXY=[this.mcPublicCard.card1.y, this.mcPublicCard.card2.y, this.mcPublicCard.card3.y, this.mcPublicCard.card4.y, this.mcPublicCard.card5.y];
			var publicCards:Array=[this.mcPublicCard.card1, this.mcPublicCard.card2, this.mcPublicCard.card3, this.mcPublicCard.card4, this.mcPublicCard.card5];
			var index:int=0;
			while (index < publicCards.length)
			{

				this._arrCard[index]=new CardManage(publicCards[index], false);
				this._arrCard[index].visible=false;
				index=index + 1;
			}
			return;
		}

		private function get mcPublicCard():MovieClip
		{
			return viewComponent as MovieClip;
		}
	}
}
